<?php
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
/*===================================================================
= Query Builder File for the Treeview Management
= Duleepa Wijayawardhana 29.07.2003
=====================================================================*/

require_once(CLASS_USERADMIN);
$UserAdmin = new UserAdmin;

switch ($_REQUEST["action"])
{
	//------------------ADD CHANNEL ------------------------------------------------------------------------------//
	case "changepassword":
		$aInfo["newpassword"] = $_POST["newpassword"];
		$aInfo["newpasswordconfirm"] = $_POST["newpasswordconfirm"];
		$sMessage = $UserAdmin->SetMyPassword($aInfo["newpassword"], $aInfo["newpasswordconfirm"]);
		$sMessage = "?message=".urlencode($sMessage);
		break;
	
}

header("Location: /admin/myaccount/index.html".$sMessage);
exit;
?>
